﻿using System;
using System.Collections;
using InfoJetSoft.Service.Util;

namespace InfoJetSoft.Service.Entity
{
	//用来表示规则.
	//一共有四种规则:OnLoad规则,Button规则,Section规则,Field规则.
	public class Rule
	{
		public string Caption
		{
			get
			{
				return caption;
			}
			
			set
			{
				this.caption = value;
			}
			
		}
		
		public string Condition
		{
			get
			{
				return condition;
			}
			
			set
			{
				this.condition = value;
			}
			
		}
		
		public bool Enabled
		{
			get
			{
				return enabled;
			}
			
			set
			{
				this.enabled = value;
			}
			
		}
		
		public bool ExitRuleSet
		{
			get
			{
				return exitRuleSet;
			}
			
			set
			{
				this.exitRuleSet = value;
			}
			
		}

		public QueryXslt QueryXslt {
			get {
				return queryXslt;
			}
			
			set {
				this.queryXslt = value;
			}
			
		}
		
		public ArrayList RuleActionList
		{
			get
			{
				return ruleActionList;
			}
			
			set
			{
				this.ruleActionList = value;
			}
			
		}
		
		private string caption = null;
		private string condition = null;
		private bool enabled = true;
		private bool exitRuleSet = false;
		private QueryXslt queryXslt = null;
		private ArrayList ruleActionList = null;
	}
}